﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NJL.Web.Controls
{
    public partial class WUEnterPriseSpaceLeftMaps : BaseUserControl
    {
        private readonly NJL.BLL.NJL_COMPANY bllCompany = new BLL.NJL_COMPANY();
        protected NJL.Model.NJL_COMPANY modelCompany;

        protected void Page_Load(object sender, EventArgs e)
        {

            modelCompany = bllCompany.GetModel(Request.QueryString["id"].ToString());

            if (!string.IsNullOrEmpty(modelCompany.TRAFFIC_GUIDE) && modelCompany.TRAFFIC_GUIDE.Length > 300)
            {
                litTraffic.Text = modelCompany.TRAFFIC_GUIDE.Substring(0, 300);
            }
            else
            {
                litTraffic.Text = modelCompany.TRAFFIC_GUIDE;
            }

        }
    }
}